//
//  RCMerchantDetailCell.h
//  RocketProject
//
//  Created by chen jiedan on 13-7-5.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RCMerchantDetailDataModel.h"
#import "RCMerchantDetailVC.h"
#import "RCMapViewController.h"

typedef enum{
    OneLineCellTypeAddress = 1,
    OneLineCellTypePhone = 2,
    OneLineCellTypeOrder = 3,
    OneLineCellTypeOrderServe = 4,
    OneLineCellTypeTraffic = 5,
    OneLineCellTypeOtherShop = 6
    
} OneLineCellType;

@protocol RCMerchantDetailHeaderCellDelegate <NSObject>

@optional
-(void)gotoPictureAlbumView;

@end

@interface RCMerchantDetailHeaderCell : UITableViewCell

@property(nonatomic,assign)id<RCMerchantDetailHeaderCellDelegate>delegate;

- (void) bindData:(RCMerchantDetailDataModel *)detailModel;
@end


@interface RCMerchantDetailOnelineCell : UITableViewCell<UIActionSheetDelegate>

@property(nonatomic,assign) OneLineCellType cellType;
@property(nonatomic,retain) RCMerchantDetailItem *dataModel;
@property(nonatomic,assign) UIViewController *parentViewController;
@property(nonatomic,assign) CLLocationCoordinate2D location;
@property(nonatomic,copy) NSString *merchantName;
@property(nonatomic,copy) NSString *merchantID;

- (void) bindData:(RCMerchantDetailItem *)detailModel;
+ (CGFloat) cellHeightWithString:(RCMerchantDetailItem *)detailModel;

@end


@interface RCMerchantDetailTwolineCell : UITableViewCell

- (void) bindData:(RCMerchantDetailItem *)detailModel;
+ (CGFloat) cellHeightWithString:(NSString *)str;

@end

@interface RCMerchantDetailRecommendCell : UITableViewCell

- (void) bindData:(RCMerchantDetailItem *)detailModel;
+ (CGFloat) cellHeightWithString:(NSString *)str;

@end


//点评的cell
@interface RCMerchantDetailCommentCell : UITableViewCell

- (void) bindData:(RCMerchantDetailItem *)detailModel;
+ (CGFloat) cellHeightWithString:(NSString *)str;

@end

//签到cell

@interface RCMerchantDetailSignCell : UITableViewCell

- (void) bindData:(RCMerchantDetailItem *)detailModel;
+ (CGFloat) cellHeight;

@end

@protocol RCMerchantPeripheryCellDelegte <NSObject>

@optional
-(void)gotoMerchantNearbyWithTag:(NSInteger)tag;

@end
@interface RCMerchantDetailPeripheryCell : UITableViewCell

@property(nonatomic,assign) id<RCMerchantPeripheryCellDelegte>delegate;

+ (CGFloat) cellHeight;

@end

@interface RCMerchantDiscoutCell : UITableViewCell

-(void)bindData:(RCMerchantDetailItem *)detailModel;

+(CGFloat)getCellHeight:(RCMerchantDetailItem *)detailModel;

@end

